//
//  Bullet01.cpp
//  Space shooting
//
//  Created by Raiden on 9/23/13.
//
//

#include "Bullet01.h"
#include "Constants.h"

Bullet01::Bullet01() {
    
    damage = 1;
    setTag(BULLET_TAG);
}

Bullet01::~Bullet01() {
    removeAllChildrenWithCleanup(true);
}

Bullet01* Bullet01::create(const char *pszFileName) {
    
    Bullet01 *bullet = new Bullet01;
    
    if(bullet && bullet->initWithFile(pszFileName)) {
        
        bullet->autorelease();
        
        return bullet;
    }
    
    CC_SAFE_DELETE(bullet);
    return NULL;
}